package com.gao.mapper;

import com.gao.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Projectname springboot-05-mybatis
 * @Filename UserMapper
 * @Author an
 * @Data 2022/8/13 9:20
 * @Description TODO
 */
//这注解是一个mybatis的mapper类
    //或者@MapperScan("com.gao.mapper") 主程序类上扫描
@Mapper
@Repository
public interface UserMapper {

    List<User> queryUserList();

    User queryUserById(int id);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(int id);

}
